﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Theoreme.Samples.Engine
 {
     /// <summary>
     /// 
     /// </summary>
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
    public class SampleAttribute : Attribute
    {
        int _chapter;
        int _listing;
        string _description;

        public SampleAttribute(int chapter, int listingNumber, string description)
        {
            this._chapter       = chapter;
            this._listing       = listingNumber;
            this._description   = description;
        }

        /// <summary>
        /// Gets the chapter.
        /// </summary>
        public int Chapter
        {
            get { return this._chapter; }
        }

        /// <summary>
        /// Gets the listing number.
        /// </summary>
        public int ListingNumber
        {
            get { return this._listing; }
        }

        /// <summary>
        /// Gets the description.
        /// </summary>
        public string Description
        {
            get { return this._description; }
        }
    }
}